package com.gwclh.personnel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作记录表
 *
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_operation_log")
@ApiModel(value = "OperationLog对象", description = "操作记录表 ")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作人id")
    private Integer operUserId;

    @ApiModelProperty(value = "操作人名字")
    private String operUserName;

    @ApiModelProperty(value = "操作模块")
    private String operModule;

    @ApiModelProperty(value = "请求方法")
    private String operMethod;

    @ApiModelProperty(value = "操作类型")
    private String operType;

    @ApiModelProperty(value = "操作描述")
    private String operDesc;

    @ApiModelProperty(value = "请求参数")
    private String operRequParam;

    @ApiModelProperty(value = "响应参数")
    private String operRespParam;

    @ApiModelProperty(value = "操作是否成功，0不成功，1成功")
    private Boolean operResult;

    @ApiModelProperty(value = "请求uri")
    private String operUri;

    @ApiModelProperty(value = "请求ip")
    private String operIp;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "异常名称，如果发生异常的话")
    private String operExcName;

    @ApiModelProperty(value = "异常信息，如果发生异常的话")
    private String operExcMsg;

    @ApiModelProperty(value = "操作时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
